#! /usr/bin/python

def multiplier(factor):
    def multiplyByFactor(number):
        return factor * number
    return multiplyByFactor

def main():
    double = multiplier(2)
    print double(5)
    
    triple = multiplier(3)
    print triple(5)

    print multiplier(4)(5)

if __name__ == '__main__':
    main()

